import { _ as _export_sfc, c as __nuxt_component_0$1 } from '../server.mjs';
import { _ as __nuxt_component_0 } from './nuxt-link-e8ce45ca.mjs';
import { u as useServerRequest } from './useServerRequest-5f9c762f.mjs';
import { useSSRContext, defineComponent, withAsyncContext, mergeProps, withCtx, unref, createVNode, toDisplayString, createTextVNode } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrRenderStyle, ssrInterpolate, ssrRenderSlot } from 'vue/server-renderer';
import 'node:http';
import 'node:https';
import '../../nitro/node-server.mjs';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import '@unhead/shared';
import 'vue-router';
import '../../index.mjs';
import 'unhead';
import 'tailwind-merge';
import 'highlight.js';

const _sfc_main$2 = /* @__PURE__ */ defineComponent({
  __name: "index",
  __ssrInlineRender: true,
  async setup(__props) {
    var _a;
    let __temp, __restore;
    const { data: info } = ([__temp, __restore] = withAsyncContext(() => useServerRequest("sites/info", {
      method: "POST",
      body: {}
    })), __temp = await __temp, __restore(), __temp);
    const siteInfo = (_a = info.value) == null ? void 0 : _a.result;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_NuxtLink = __nuxt_component_0;
      _push(`<nav${ssrRenderAttrs(mergeProps({ class: "nav" }, _attrs))} data-v-d6f46046><header class="header" data-v-d6f46046>`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        class: "nav-item",
        to: "/"
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<span class="m-flex-r m-jc-s m-ai-c" data-v-d6f46046${_scopeId}><img${ssrRenderAttr("src", unref(siteInfo).logoUrl)}${ssrRenderAttr("alt", unref(siteInfo).name)} style="${ssrRenderStyle({ "width": "44px", "height": "44px", "border-radius": "50%" })}" data-v-d6f46046${_scopeId}><span style="${ssrRenderStyle({ "margin-left": "12px", "font-weight": "600" })}" data-v-d6f46046${_scopeId}>${ssrInterpolate(unref(siteInfo).name)}</span></span>`);
          } else {
            return [
              createVNode("span", { class: "m-flex-r m-jc-s m-ai-c" }, [
                createVNode("img", {
                  src: unref(siteInfo).logoUrl,
                  alt: unref(siteInfo).name,
                  style: { "width": "44px", "height": "44px", "border-radius": "50%" }
                }, null, 8, ["src", "alt"]),
                createVNode("span", { style: { "margin-left": "12px", "font-weight": "600" } }, toDisplayString(unref(siteInfo).name), 1)
              ])
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(ssrRenderComponent(_component_NuxtLink, {
        class: "nav-item active",
        to: "/",
        style: { "margin-left": "20px" }
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`\u9996\u9875`);
          } else {
            return [
              createTextVNode("\u9996\u9875")
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</header></nav>`);
    };
  }
});
const _sfc_setup$2 = _sfc_main$2.setup;
_sfc_main$2.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/AppHeader/index.vue");
  return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d6f46046"]]);
const _sfc_main$1 = {};
function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs) {
  _push(`<div${ssrRenderAttrs(mergeProps({ id: "app-footer" }, _attrs))} data-v-59454cfa><a href="https://www.linquaner.com/" target="_blank" data-v-59454cfa>AI\u7A7A\u95F4\u7AD9</a> \u63D0\u4F9B\u6280\u672F\u652F\u6301 </div>`);
}
const _sfc_setup$1 = _sfc_main$1.setup;
_sfc_main$1.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/AppFooter/index.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const __nuxt_component_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender$1], ["__scopeId", "data-v-59454cfa"]]);
const _sfc_main = {};
function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
  const _component_NuxtLoadingIndicator = __nuxt_component_0$1;
  const _component_AppHeader = __nuxt_component_1;
  const _component_AppFooter = __nuxt_component_2;
  _push(`<!--[-->`);
  _push(ssrRenderComponent(_component_NuxtLoadingIndicator, null, null, _parent));
  _push(ssrRenderComponent(_component_AppHeader, null, null, _parent));
  ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
  _push(ssrRenderComponent(_component_AppFooter, null, null, _parent));
  _push(`<!--]-->`);
}
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("layouts/default.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const _default = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);

export { _default as default };
//# sourceMappingURL=default-8551a7e0.mjs.map
